package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class SysCustomer extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 客户ID
     */
    @Excel(name = "客户序号", cellType = Excel.ColumnType.NUMERIC)
    private Long customerId;
    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String name;
    /**
     * 所在省
     */
    @Excel(name = "客户所属省")
    private String province;
    /**
     * 所在市
     */
    @Excel(name = "客户所属市")
    private String city;
    /**
     * 联系人
     */
    @Excel(name = "客户方联系人")
    private String contact;
    /**
     * 性别
     */
    @Excel(name = "联系人性别",readConverterExp = "0=男,1=女,2=未知")
    private Long sex;
    /**
     * 部门
     */
    @Excel(name = "联系人所在部门")
    private String department;
    /**
     * 职位
     */
    @Excel(name = "职位")
    private String title;
    /**
     * e-mail
     */
    @Excel(name = "邮件")
    private String email;
    /**
     * 手机号
     */
    @Excel(name = "手机号")
    private String mobile;
    /**
     * 公司地址
     */
    @Excel(name = "公司地址")
    private String address;

    /**
     * 所属用户(销售)ID
     */
    @Excel(name = "客户归属")
    private String userName;
    /**
     * 座机
     */
    @Excel(name = "座机")
    private String tel;
    /**
     * 微信
     */
    @Excel(name = "客户微信")
    private String wechat;
    /**
     * 微信公众号
     */
    private String wechatPublic;
    /**
     * 客户情况
     */
    @Excel(name = "客户情况")
    private String situation;

    /**
     * 状态
     */
    @Excel(name = "状态",dictType = "sys_customer_status")
    private Long status;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public Long getSex() {
        return sex;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getWechatPublic() {
        return wechatPublic;
    }

    public void setWechatPublic(String wechatPublic) {
        this.wechatPublic = wechatPublic;
    }

    public String getSituation() {
        return situation;
    }

    public void setSituation(String situation) {
        this.situation = situation;
    }

    public SysCustomer() {
    }

    public SysCustomer(Long customerId, String name, String province, String city, String contact, Long sex, String department, String title, String email, String mobile, String address, String userName, String tel, String wechat, String wechatPublic, String situation, Long status) {
        this.customerId = customerId;
        this.name = name;
        this.province = province;
        this.city = city;
        this.contact = contact;
        this.sex = sex;
        this.department = department;
        this.title = title;
        this.email = email;
        this.mobile = mobile;
        this.address = address;
        this.userName = userName;
        this.tel = tel;
        this.wechat = wechat;
        this.wechatPublic = wechatPublic;
        this.situation = situation;
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("customerId", getCustomerId())
                .append("name", getName())
                .append("province", getProvince())
                .append("city", getCity())
                .append("contact", getContact())
                .append("sex", getSex())
                .append("department", getDepartment())
                .append("title", getTitle())
                .append("email", getEmail())
                .append("mobile", getMobile())
                .append("address", getAddress())
                .append("userName", getUserName())
                .append("tel", getTel())
                .append("wechat", getWechat())
                .append("wechatPublic", getWechat())
                .append("situation", getSituation())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
